/**
 * 捐赠管理
 */

import http from '@/utils/httpRequest'
export default {
    // 分页查看申请捐赠
    donationPage (param) {
        return http.get(http.adornUrl('/admin/donation/page'), { params: param })
    },
    // 查看申请捐赠 详情
    donationInfo (id) {
        return http.get(http.adornUrl(`/admin/donation/info/${id}`))
    },
    // 审核申请捐赠
    donationAudit (data) {
        return http.post(http.adornUrl(`/admin/donation/audit`), data)
    },
    // 公益积分配置列表
    pointsConfigList (param) {
        return http.get(http.adornUrl(`/admin/donation/points/config/list`), { params: param })
    },
    // 保存公益积分配置
    pointsConfigSave (data) {
        return http.post(http.adornUrl(`/admin/donation/points/config/save`), data)
    },
    // 公益积分捐赠列表
    pointsPage (param) {
        return http.get(http.adornUrl(`/admin/donation/points/page`), { params: param })
    },
}